package com.edooteach.api.web.controller.content;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.demo2do.core.entity.result.HttpResult;

/**
 * 小程序基础内容Controller
 * @author mohanlan
 *
 */
@Controller
@RequestMapping("/weapp/contents")
public class WeappContentcontroller {
  
  /**
   * 
   * @return
   */
  @RequestMapping(value = "/app", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
  public HttpResult app() {
    
    HttpResult httpResult = new HttpResult();
    
    return httpResult.success()
                     .data("banner", "https://qiniu.upload.edooschool.com/welcome-background-weapp.png")
                     .message("获取app级别内容数据成功");
    
  }
}
